//
//  SecondViewController.m
//  TestForBlock
//
//  Created by 伍银荣 on 2021/7/8.
//  Copyright © 2021 com.WYR. All rights reserved.
//

#import "SecondViewController.h"
#import "ViewController.h"

@interface SecondViewController ()

@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"secondVC";
    self.view.backgroundColor = [UIColor whiteColor];
    
    UILabel *lbl = [[UILabel alloc]initWithFrame:CGRectMake(100, 200, 200, 40)];
    lbl.backgroundColor = [UIColor yellowColor];
    lbl.textColor = [UIColor blackColor];
    lbl.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:lbl];
    
    
    self.vc.textFieldBlock = ^(NSString *text) {
        lbl.text = text;
    };
    
    NSLog(@"---lalalal");
}



/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
